//
//  NetworkManager+UINet.m
//  云成绩
//
//  Created by Apple1 on 2016/11/23.
//  Copyright © 2016年 zj. All rights reserved.
//

#import "NetworkManager+UINet.h"
#import "ValidNumber.h"
@implementation NetworkManager (UINet)

//- (RequestNormal *)getVersion {
//    return Network.request(HTTP_GET_VERSION).post(@{@"type":@"ios"});
//}

- (RequestNormal *)autoLogin {
    
    NSString *userName = [[NSUserDefaults standardUserDefaults] objectForKey:@"user_phone"];
    NSString *password = [[NSUserDefaults standardUserDefaults] objectForKey:@"user_password"];
    NSDictionary *param = @{@"mobile":userName,@"password":[ValidNumber md5:password],@"logintype":@"2"};
    return Network.request(Login_API).post(ENCODE(param));
}

@end
